#include "qmlobjecttest.h"
#include <QDebug>

qmlObjectTest::qmlObjectTest(QObject *parent) : QObject(parent)
{

}

void qmlObjectTest::printLog(QtMsgTypeTest type, const QString &msg)
{
    switch (type) {
    case QtDebugMsgTest:
        qDebug("[your c++ log level is *QtDebugMsgTest*]");
        break;
    case QtWarningMsgTest:
        qWarning("[your c++ log level is *QtWarningMsgTest*]");
        break;
    case QtCriticalMsgTest:
        qCritical("[your c++ log level is *QtCriticalMsgTest*]");
        break;
    case QtFatalMsgTest:
        qFatal("[your c++ log level is *QtFatalMsgTest*]");
        abort();
        break;
    case QtInfoMsgTest:
        qInfo("[your c++ log level is *QtInfoMsgTest*]");
        break;
    default:
        break;
    }
}

